//
//  YDPointSaleConfirTableCell.m
//  PeiZiWangBei
//
//  Created by LK-IOS on 2017/11/10.
//  Copyright © 2017年 LK-IOS. All rights reserved.
//

#import "YDPointSaleConfirTableCell.h"
@interface YDPointSaleConfirTableCell()


@end

@implementation YDPointSaleConfirTableCell

+ (instancetype)cellWithTableView:(UITableView *)tableView
{
    static NSString *pointSaleConfirTableCell = @"YDPointSaleConfirTableCell";
    YDPointSaleConfirTableCell *cell = [tableView dequeueReusableCellWithIdentifier:pointSaleConfirTableCell];
    if (cell == nil) {
        cell = [[YDPointSaleConfirTableCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:pointSaleConfirTableCell];
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    return cell;
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.contentView.backgroundColor = [UIColor whiteColor];
        self.backgroundColor = [UIColor whiteColor];
        [self cateLabel];
        [self contLabel];

    }
    return self;
}
-(UILabel *)cateLabel
{
    if (_cateLabel == nil) {
        UILabel *cateLabel = [[UILabel alloc] init];
        [self.contentView addSubview:cateLabel];
        cateLabel.font = [UIFont systemFontOfSize:font14ScreenWRate * LKScreenW];
        cateLabel.textColor = [UIColor colorWithHexString:blueyGrey];
        cateLabel.textAlignment = NSTextAlignmentLeft;
        cateLabel.text = @"-----";
        [cateLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self);
            make.left.equalTo(self).offset(rate375(55));
        }];
        _cateLabel = cateLabel;
    }
    return _cateLabel;
}
-(UILabel *)contLabel
{
    if (_contLabel == nil) {
        UILabel *contLabel = [[UILabel alloc] init];
        [self.contentView addSubview:contLabel];
        contLabel.font = [UIFont systemFontOfSize:font14ScreenWRate * LKScreenW];
        contLabel.textColor = [UIColor colorWithHexString:blueyGrey];
        contLabel.textAlignment = NSTextAlignmentLeft;
        contLabel.text = @"-----";
        [contLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self);
            make.right.equalTo(self).offset(-rate375(55));
        }];
        _contLabel = contLabel;
    }
    return _contLabel;
}


@end
